<?php

$this->pageTitle=Yii::app()->name . ' - News';
$this->breadcrumbs=array(
	'News'=>array('news/index/'),
);

?>


<div class="large-12 columns table">
<?php
	$data = $dataProvider->getData();

	$counter=0;
	echo '<div class="row">';
	foreach ($data as &$catalogItem) {
		echo '<div class="large-4 small-6 columns" style="height: 100%">';
		echo $this->renderPartial('../_card', array('model'=>$catalogItem));
		echo '</div>';

		if(($counter+4)%3==0){
		  echo '</div>';
		  if($counter+1!=count($data)){
		    echo '<div class="row">';
		  }
		}

		$counter++;
	}
	if($counter+1!=count($data)){
		echo '</div>';
	}
  	
?>
</div>